package com.xg.demo.listener;

import org.springframework.context.ApplicationListener;

/**
 * Created with IntelliJ IDEA.
 *
 * @author hans
 * @version 1.0
 * @date 2023/04/24/15:21
 * @description 自定义监听事件
 */
public class MyListener implements ApplicationListener<MyEvent> {
    /**
     * 实现自定监听事件
     *
     * @param event the event to respond to
     */
    @Override
    public void onApplicationEvent(MyEvent event) {
        System.out.println("MyListener ---> " + event);
    }
}
